#!/bin/bash

BRANCH='hss6-upgrade'
LOCAL_ROOT='/cygdrive/d/Dev/Android/eagle-android-projs/hss6-upgrade/platform'

LOCAL_APPS[0]='motorola/packages/apps/OutOfBox'
LOCAL_APPS[1]="packages/apps/Settings"
LOCAL_APPS[2]="motorola/packages/blur"


function update_src {
    echo
    echo update $PATHAPP ...
    cd $LOCAL_ROOT/$PATHAPP
    git checkout remotes/origin/$BRANCH
    git pull
}

git config --global http.proxy --unset
for var in ${LOCAL_APPS[@]}; do
    PATHAPP=$var
    update_src
done
